home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 3.9 KB | 190 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _ODOBJECT_
- #define _ODOBJECT_
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef _ODTYPES_
- #include "ODTypes.idl"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This file defines class ODObject. This class is the common base class
- for all OpenDoc classes. It provides for extensibility through the
- Extensions protocol.
- */
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODObject;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODExtension;
-
- //==============================================================================
- // ODObject
- //==============================================================================
-
- interface M_ODObject : SOMClass
- {
- #ifdef __SOMIDL__
- implementation
- {
- somNew : override;
- };
- #endif
- };
-
- interface ODObject : SOMObject
- {
- void InitObject();
-
- boolean IsInitialized();
-
- boolean HasExtension(in ODType extensionName);
-
- ODExtension GetExtension(in ODType extensionName);
-
- void ReleaseExtension(in ODExtension extension);
-
- ODSize Purge(in ODSize size);
-
- void SubClassResponsibility();
-
- #ifdef __SOMIDL__
-
- implementation
- {
- metaclass = M_ODObject;
-
- passthru C_xh = "
- ""
- "#include <ODTypes.xh>;"
- "#include <ODTypesM.h>;"
- "";
-
- somInit : override;
- somUninit : override;
-
- releaseorder:
- InitObject,
- IsInitialized,
- HasExtension,
- GetExtension,
- ReleaseExtension,
- Purge,
- SubClassResponsibility;
-
- };
-
- #endif
-
- };
-
- #endif // _ODOBJECT_
-
- #ifndef _ODOBJECT_
- #define _ODOBJECT_
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef _ODTYPES_
- #include "ODTypes.idl"
- #endif
-
- //==============================================================================
- // Theory of Operation
- //==============================================================================
-
- /*
- This file defines class ODObject. This class is the common base class
- for all OpenDoc classes. It provides for extensibility through the
- Extensions protocol.
- */
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODObject;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODExtension;
-
- //==============================================================================
- // ODObject
- //==============================================================================
-
- interface M_ODObject : SOMClass
- {
- #ifdef __SOMIDL__
- implementation
- {
- somNew : override;
- };
- #endif
- };
-
- interface ODObject : SOMObject
- {
- void InitObject();
-
- boolean IsInitialized();
-
- boolean HasExtension(in ODType extensionName);
-
- ODExtension GetExtension(in ODType extensionName);
-
- void ReleaseExtension(in ODExtension extension);
-
- ODSize Purge(in ODSize size);
-
- void SubClassResponsibility();
-
- #ifdef __SOMIDL__
-
- implementation
- {
- metaclass = M_ODObject;
-
- passthru C_xh = "
- ""
- "#include <ODTypes.xh>;"
- "#include <ODTypesM.h>;"
- "";
-
- somInit : override;
- somUninit : override;
-
- releaseorder:
- InitObject,
- IsInitialized,
- HasExtension,
- GetExtension,
- ReleaseExtension,
- Purge,
- SubClassResponsibility;
-
- };
-
- #endif
-
- };
-
- #endif // _ODOBJECT_
-
-